Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove deprecated pip cache action #19552

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Jan 2, 2024

we use https://github.com/syphar/restore-pip-download-cache which was deprecated 9 months ago

let's switch to its recommendation of the default python action cache


we see the cache used on a second run

Screenshot 2024-01-02 at 13 39 54

@pauldambra pauldambra requested a review from a team January 2, 2024 13:40
with:
python-version: 3.10.10
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples always include **/ eg **/requirements*.txt
We probably don't need that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered about that... we're super unlikely to add more requirements files but 🤷

I guess I can check if it affects the running speed and (how much could it after all) it it isn't slower then it helps the future traveller to have the wildcard

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it depends on how deep the nested folders go since it is a mono repo, but likely it won't affect anything noticeable, your call :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, no noticeable effect on speed so it doesn't hurt 😊

@pauldambra pauldambra enabled auto-merge (squash) January 2, 2024 14:52
@pauldambra pauldambra merged commit 9af89cd into master Jan 2, 2024
74 checks passed
@pauldambra pauldambra deleted the fix/remove-deprecated-action branch January 2, 2024 15:02
fuziontech pushed a commit that referenced this pull request Jan 4, 2024
* fix: remove deprecated pip cache action

* with wildcard

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants